﻿using System;
class ZeroSumCheck
{
    static void Main()
    {
        int numberone;
        int numbertwo;
        int numberthree;
        int numberfour;
        int numberfive;
        while (true)
        {
            try
            {
                numberone = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter number:");
            }
        }
        while (true)
        {
            try
            {
                numbertwo = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter number:");
            }
        }
        while (true)
        {
            try
            {
                numberthree = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter number:");
            }
        }
        while (true)
        {
            try
            {
                numberfour = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter number:");
            }
        }
        while (true)
        {
            try
            {
                numberfive = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter number:");
            }
        }
        if (((numberone >= 0) && (numbertwo >= 0) && (numberthree >= 0) && (numberfour >= 0) && (numberfive >= 0)) 
                                                         || ((numberone < 0) && (numbertwo < 0) && (numberthree < 0) && (numberfour < 0) && (numberfive < 0)))
        {
            Console.WriteLine("IT IS NOT POSIBLE!");
            Console.ReadLine();
        }
        else
        {
            Console.WriteLine("Enterd numbers are: {0}, {1}, {2}, {3}, {4}", numberone, numbertwo, numberthree, numberfour, numberfive);
            Console.ReadLine();



        }
    }
}

